#ifndef Scenic_Renderer_Tesselator_h
#define Scenic_Renderer_Tesselator_h

namespace Scenic 
{ 
namespace Renderer
{

#define TESS_BLOCK_SIZE 100
 
struct TessVertex
{
	double p[3];
};
 
struct TessBlock
{
	struct TessVertex vertices[TESS_BLOCK_SIZE];
	struct TessBlock *next;
};

class TessVertexBuffer
{
	TessBlock *tessBlocks;
	int numTessVertex;

public:
	TessVertexBuffer();
	~TessVertexBuffer();

	TessVertex *newVertex();
	void free();
};

}
}

#endif
